//
//  JddSimmitSecuritycode.m
//  PlayBall
//
//  Created by superman on 14-8-22.
//
//

#import "JddSimmitSecuritycode.h"
#import "JddParameterBuilder.h"

@implementation JddSimmitSecuritycode
@synthesize userName;
@synthesize verifyCode;

- (void)main
{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder simmitCode:verifyCode andUserName:userName];
    NSData *simmitCode = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    
//    NSString *str = [NSJSONSerialization JSONObjectWithData:simmitCode options:NSJSONReadingMutableContainers error:nil];
//    NSLog(@"=========333=========%@",str);
    
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(SimmitSecuritycodeResult:) withObject:simmitCode waitUntilDone:NO];
}

@end
